package co.edu.javeriana.aes.patrones.monopolio.gameroom;

import co.edu.javeriana.aes.patrones.monopolio.session.Session;
import java.io.Serializable;

/**
 *
 * @author gersua
 */
public class PlayerDTO implements Serializable {

    private GameRoom gameRoom;
    private Session session;

    public PlayerDTO(GameRoom gameRoom, Session session) {
        this.gameRoom = gameRoom;
        this.session = session;
    }

    public GameRoom getGameRoom() {
        return gameRoom;
    }

    public void setGameRoom(GameRoom gameRoom) {
        this.gameRoom = gameRoom;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

//    @Override
//    public boolean equals(Object o) {
////        if (o == null) {
////            return false;
////        }
////
////        if (!(o instanceof PlayerDTO)) {
////            return false;
////        }
////
////        PlayerDTO playerDTO = (PlayerDTO) o;
////        return session.getNickmame().equals(playerDTO.getSession().getNickmame());
//    }

//    @Override
//    public int hashCode() {
//        int hash = 7;
//        hash = 37 * hash + (this.gameRoom != null ? this.gameRoom.hashCode() : 0);
//        hash = 37 * hash + (this.session != null ? this.session.hashCode() : 0);
//        return hash;
//    }
}
